<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        // 输入语句
        // var 变量名 = 变量值
        var a = prompt('请输入', 123); // 456

        // 输出语句
        alert(a);

    </script>
</body>
</html>

<!-- webstorm -->